<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: /HElib/include/helib/PAlgebra.h File Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_d0c4ae63660968bf6b1c77a1e8aecf95.html">helib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">PAlgebra.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Declarations of the classes PAlgebra.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;exception&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
<code>#include &lt;complex&gt;</code><br />
<code>#include &lt;<a class="el" href="_numb_th_8h_source.html">helib/NumbTh.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="zz_x_8h_source.html">helib/zzX.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="hypercube_8h_source.html">helib/hypercube.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_p_g_f_f_t_8h_source.html">helib/PGFFT.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="cloned_ptr_8h_source.html">helib/clonedPtr.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="api_attributes_8h_source.html">helib/apiAttributes.h</a>&gt;</code><br />
</div>
<p><a href="_p_algebra_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1half___f_f_t.html">helib::half_FFT</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structhelib_1_1quarter___f_f_t.html">helib::quarter_FFT</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra.html">helib::PAlgebra</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure of (Z/mZ)* /(p)  <a href="classhelib_1_1_p_algebra.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_base.html">helib::PAlgebraModBase</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual base class for <a class="el" href="classhelib_1_1_p_algebra_mod.html" title="The structure of Z[X]/(Phi_m(X), p)">PAlgebraMod</a>.  <a href="classhelib_1_1_p_algebra_mod_base.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived&lt; type &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A concrete instantiation of the virtual class.  <a href="classhelib_1_1_p_algebra_mod_derived.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_mapping_data.html">helib::MappingData&lt; type &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Auxiliary structure to support encoding/decoding slots.  <a href="classhelib_1_1_mapping_data.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_derived.html">helib::PAlgebraModDerived&lt; type &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A concrete instantiation of the virtual class.  <a href="classhelib_1_1_p_algebra_mod_derived.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod_cx.html">helib::PAlgebraModCx</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhelib_1_1_p_algebra_mod.html">helib::PAlgebraMod</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The structure of Z[X]/(Phi_m(X), p)  <a href="classhelib_1_1_p_algebra_mod.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacehelib"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html">helib</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a3f121e88d1ede1fd384a8ad4ebb51f41"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_p_algebra_8h.html#a3f121e88d1ede1fd384a8ad4ebb51f41">PA_INJECT</a>(typ)</td></tr>
<tr class="separator:a3f121e88d1ede1fd384a8ad4ebb51f41"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ab0181d82dc81ed4d1f8c1d950b4efd7e"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">helib::PA_tag</a> { <a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7eab33244c736f38a4c21e6d86c6a683d58">helib::PA_GF2_tag</a>, 
<a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7ea63d35380340004730e7cb505a4da38e2">helib::PA_zz_p_tag</a>, 
<a class="el" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7ea7d944116ae9eb1abb2d5fa92bb6d21ee">helib::PA_cx_tag</a>
 }</td></tr>
<tr class="separator:ab0181d82dc81ed4d1f8c1d950b4efd7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:af7ad5bd5c310b0ad7f96d6e2065e5b2b"><td class="memItemLeft" align="right" valign="top">PAlgebraModBase *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#af7ad5bd5c310b0ad7f96d6e2065e5b2b">helib::buildPAlgebraMod</a> (const PAlgebra &amp;zMStar, long r)</td></tr>
<tr class="memdesc:af7ad5bd5c310b0ad7f96d6e2065e5b2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Builds a table, of type PA_GF2 if p == 2 and r == 1, and PA_zz_p otherwise.  <a href="namespacehelib.html#af7ad5bd5c310b0ad7f96d6e2065e5b2b">More...</a><br /></td></tr>
<tr class="separator:af7ad5bd5c310b0ad7f96d6e2065e5b2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4e8a7e6a0c99087b87431d7478e4d6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#aed4e8a7e6a0c99087b87431d7478e4d6">helib::comparePAlgebra</a> (const PAlgebra &amp;palg, unsigned long m, unsigned long p, unsigned long r, const std::vector&lt; long &gt; &amp;gens, const std::vector&lt; long &gt; &amp;ords)</td></tr>
<tr class="memdesc:aed4e8a7e6a0c99087b87431d7478e4d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns true if the palg parameters match the rest, false otherwise  <a href="namespacehelib.html#aed4e8a7e6a0c99087b87431d7478e4d6">More...</a><br /></td></tr>
<tr class="separator:aed4e8a7e6a0c99087b87431d7478e4d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a742ec1357ca244079dacd7c1cb2fcb90"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a742ec1357ca244079dacd7c1cb2fcb90">helib::calcPolyNormBnd</a> (long m)</td></tr>
<tr class="separator:a742ec1357ca244079dacd7c1cb2fcb90"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Declarations of the classes PAlgebra. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a3f121e88d1ede1fd384a8ad4ebb51f41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f121e88d1ede1fd384a8ad4ebb51f41">&#9670;&nbsp;</a></span>PA_INJECT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PA_INJECT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">typ</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">  <span class="keyword">static</span> <span class="keyword">const</span> <a class="code" href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">PA_tag</a> tag = typ::tag;                                          \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::R R;                                                   \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::RX RX;                                                 \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::vec_RX vec_RX;                                         \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::RXModulus RXModulus;                                   \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::RBak RBak;                                             \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::RContext RContext;                                     \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::RE RE;                                                 \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::vec_RE vec_RE;                                         \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::mat_RE mat_RE;                                         \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::REX REX;                                               \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::REBak REBak;                                           \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::vec_REX vec_REX;                                       \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::REContext REContext;                                   \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::mat_R mat_R;                                           \</div>
<div class="line">  typedef <span class="keyword">typename</span> typ::vec_R vec_R;</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<div class="ttc" id="anamespacehelib_html_ab0181d82dc81ed4d1f8c1d950b4efd7e"><div class="ttname"><a href="namespacehelib.html#ab0181d82dc81ed4d1f8c1d950b4efd7e">helib::PA_tag</a></div><div class="ttdeci">PA_tag</div><div class="ttdef"><b>Definition:</b> PAlgebra.h:296</div></div>
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
